package com.example.work1.server.mapper;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

@Mapper
public interface UserMapper {
    @Select("SELECT COUNT(*) FROM users WHERE username = #{username} AND password = #{password}")
    int validateUser(@Param("username") String username, @Param("password") String password);

}
